setTranslationY

open fun setTranslationY(view: View, value: Float)(source)

Deprecated

Use setTranslationY directly.

Sets the vertical location of this view relative to its top position. This effectively positions the object post-layout, in addition to wherever the object's layout placed it.

Parameters

view

view for which to set the translation.

value

The vertical position of this view relative to its top position, in pixels.